<?php

class Damages_Methods_Response_GetDealers extends Damages_Methods_Response {

  /**
   *
   * @var Damages_Methods_Data_DealerData_Detailed[] 
   */
  public $dealers = array();

  public function setDealers() {
    $data = DamagesDealersQuery::create()
            ->joinDictBrands()
            ->with('DictBrands')
            ->find();
    foreach ($data as $dealer) {
      $this->dealers[] = new Damages_Methods_Data_DealerData_Detailed($dealer);
    }
  }

}